<template>
  <div>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  created(){
    //加载地址存入存储
    this.$http.get("/static/addresslists.json").then(item=>{
      sessionStorage.setItem("address",JSON.stringify(item.data));
      sessionStorage.setItem("index",0);//存储默认地址
    })
  }
};
</script>

<style>
@import "./assets/css/app.css";
</style>